package com.woniuxy.third.service.impl;

import com.woniuxy.third.entity.Payments;
import com.woniuxy.third.mapper.PaymentsMapper;
import com.woniuxy.third.service.PaymentsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: yangtao
 * @date 2021/7/22 10:05
 * @Version 1.0
 */
@Service
public class PaymentsServiceImpl implements PaymentsService {
    @Resource
    private PaymentsMapper paymentsMapper;
    @Override
    public Payments findByUid(int uid) {
        return paymentsMapper.findByUid(uid);
    }

    @Override
    public void updateByUid(Payments payinfo) {
        paymentsMapper.updateByUid(payinfo);
    }

    @Override
    public void addinfo(Payments payinfo) {
        paymentsMapper.addinfo(payinfo);
    }
}
